package com.ygs.secs.mapper;

import com.ygs.secs.model.Reply;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReplyMapper {
    /**
     * delete by primary key
     *
     * @param replyid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer replyid);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Reply record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Reply record);

    /**
     * select by primary key
     *
     * @param replyid primary key
     * @return object by primary key
     */
    Reply selectByPrimaryKey(Integer replyid);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Reply record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Reply record);

    int updateBatch(List<Reply> list);

    int updateBatchSelective(List<Reply> list);

    int batchInsert(@Param("list") List<Reply> list);

    List<Reply> findreplysbyrecordid(int recordid);
}